package com.clhbolg.controller;

import cn.dev33.satoken.annotation.SaIgnore;
import com.clhbolg.service.IPhotoAlbumService;
import com.ruoyi.common.core.domain.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 相片接口
 *
 * @Author cailinhu
 * @Description TODO
 * @Date 2023/3/9 17:30
 * @Version 1.0
 */
@RestController
@RequestMapping("/photos")
public class PhotoController {

    @Autowired
    IPhotoAlbumService photoAlbumService;


    /**
     * 获取相册列表
     *
     * @return
     */
    @GetMapping("/albums")
    @SaIgnore
    public R listPhotoAlbums() {
        return R.ok(photoAlbumService.listPhotoAlbums());
    }


}
